package com.ms.service.module.analysisgroup.db.model;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import com.xpec.c4.db.model.basic.BasicModel;
import com.xpec.c4.game.utility.GameUtility;

/**
 * 基礎警示紀錄MODEL
 * @author 16040
 *
 */
@MappedSuperclass
public class BasicAlertLogModel extends BasicModel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7030265430808197783L;
	
	/**處理狀態 - 新增*/
	public static final int HANDLE_STATUS_NEW = 0;
	/**處理狀態 - 處理中*/
	public static final int HANDLE_STATUS_HANDLING = 1;
	/**處理狀態 - 已解決*/
	public static final int HANDLE_STATUS_RESOLVED = 2;
	
	/**
	 * 紀錄編號
	 */
	private int recordID;
	
	/**
	 * 紀錄時間
	 */
	private Date recordTime;
	
	/**
	 * 處理狀況
	 */
	private int handleStatus;
	
	/**
	 * 處理紀錄
	 */
	private String handleMemo;
	
	public BasicAlertLogModel(){
		this.recordTime = GameUtility.getCurrentDate();
		this.handleStatus = HANDLE_STATUS_NEW;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getRecordID() {
		return recordID;
	}

	public void setRecordID(int recordID) {
		this.recordID = recordID;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public int getHandleStatus() {
		return handleStatus;
	}

	public void setHandleStatus(int handleStatus) {
		this.handleStatus = handleStatus;
	}

	public String getHandleMemo() {
		return handleMemo;
	}

	public void setHandleMemo(String handleMemo) {
		this.handleMemo = handleMemo;
	}

}
